package com.yunc.modules.shop.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.modules.shop.entity.Cart;
import com.yunc.modules.shop.entity.dto.CartDTO;
import com.yunc.modules.shop.mapper.CartMapper;
import com.yunc.modules.shop.service.ICartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 购物车表
 *
 * @author congcong tao
 * @create 2018/12/23 10:16 PM
 */
@Service("cartService")
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements ICartService {

    @Autowired
    private CartMapper cartMapper;

    @Override
    public List<CartDTO> pageInfo(Page<Cart> page, Cart cart) {
        return cartMapper.pageInfo(page, cart);
    }
}
